package com.androwit.engine.mapping;

public interface OneSensValueConverter<J, V> extends Converter<J, V> {
	/**
	 * Used if the field's {@link MappingField#handledSpecifically()} returns
	 * true: it's on your responsibility to set the value on the target object
	 * 
	 * @param value
	 *          the String value
	 * @param instance
	 *          the currently pointed java instance in memory
	 * @param field
	 *          the defined mapper for this value
	 * @return the set value ( or null if none)
	 * @throws Exception
	 */
	public J setFromTarget(V value, Object instance, MappingField<J, ?, V> field)
			throws Exception;

}